package com.cis467.mrball.parts;

public class Portal extends Color{
	
	public int color;
	public Portal other; // swap this with Portal type if necessary
	
	public Portal(int x, int y){
		super(x,y);
		type = 0;
		color = -1;
		other = null;
		isVisible = false;
	}
	
	public Portal(int x, int y, int t) {
		super(x,y);
		type = t;
		color = -1;
		other = null;
		isVisible = false;
	}
	
	public Portal(int x, int y, int t, int c){
		super(x,y);
		type = t;
		color = c;
		other = null;
		isVisible = false;
	}
	
	public Portal(int x, int y, int t, int c, Portal match){
		super(x,y);
		type = t;
		color = c;
		other = match;
		isVisible = false;
	}
	
	public boolean isPortal() {
		return true;
	}
	
	public String toString(){
		String str;
		str = super.toString();
		String p[] = str.split("><");
		str = p[0]+" color=\""+color+"\" f=\"p\"><"+p[1];
		
		return str;
	}
}
